home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / pmake / lst / makefile.vanilla < prev    next >
Encoding:
Makefile  |  1989-11-15  |  4.4 KB  |  136 lines

  1. #
  2. # Standard Makefile for libraries
  3. # LNAME is the name of the library.
  4. #
  5. LNAME        = lst
  6. LIBRARY        = lib$(LNAME).a
  7. PLIBRARY    = lib$(LNAME)_p.a
  8. LLIBRARY    = llib-l$(LNAME)
  9.  
  10. #
  11. # Transformation rules for creating profiled object files with the .po suffix.
  12. #
  13.  
  14. .SUFFIXES    : .po
  15.  
  16. .c.po        :
  17.         $(CC) $(PCFLAGS) $(CFLAGS) -S -pg $<
  18.         $(AS) $(AFLAGS) -o $@ $*.s
  19.         rm -f $*.s
  20.  
  21. HDRS        = lst.h lstInt.h
  22. OBJS        = lstAppend.o lstAtEnd.o lstAtFront.o lstConcat.o \
  23.                   lstClose.o lstCur.o lstDatum.o lstDeQueue.o \
  24.                   lstDestroy.o lstDupl.o lstEnQueue.o lstFake.o lstFind.o \
  25.                   lstFindFrom.o lstFirst.o lstForEach.o lstForEachFrom.o \
  26.                   lstIndex.o lstInit.o lstInsert.o lstIsAtEnd.o lstIsEmpty.o \
  27.                   lstLast.o lstLength.o lstMember.o lstMove.o lstNext.o \
  28.                   lstOpen.o lstPred.o lstPrev.o lstRemove.o lstReplace.o \
  29.                   lstSetCirc.o lstSucc.o
  30.  
  31. POBJS        = lstAppend.po lstAtEnd.po lstAtFront.po lstConcat.po \
  32.                   lstClose.po lstCur.po lstDatum.po lstDeQueue.po \
  33.                   lstDestroy.po lstDupl.po lstEnQueue.po lstFake.po lstFind.po\
  34.                   lstFindFrom.po lstFirst.po lstForEach.po lstForEachFrom.po \
  35.                   lstIndex.po lstInit.po lstInsert.po lstIsAtEnd.po \
  36.                   lstIsEmpty.po \
  37.                   lstLast.po lstLength.po lstMember.po lstMove.po lstNext.po \
  38.                   lstOpen.po lstPred.po lstPrev.po lstRemove.po lstReplace.po \
  39.                   lstSetCirc.po lstSucc.po
  40.  
  41. SRCS        = lstAppend.c lstAtEnd.c lstAtFront.c lstConcat.c \
  42.                   lstClose.c lstCur.c lstDatum.c lstDeQueue.c \
  43.                   lstDestroy.c lstDupl.c lstEnQueue.c lstFake.c lstFind.c \
  44.                   lstFindFrom.c lstFirst.c lstForEach.c lstForEachFrom.c \
  45.                   lstIndex.c lstInit.c lstInsert.c lstIsAtEnd.c lstIsEmpty.c \
  46.                   lstLast.c lstLength.c lstMember.c lstMove.c lstNext.c \
  47.                   lstOpen.c lstPred.c lstPrev.c lstRemove.c lstReplace.c \
  48.                   lstSetCirc.c lstSucc.c
  49.  
  50. MACHFLAGS    =
  51. INCLUDES    = -I../includes
  52.  
  53. CFLAGS        = -g $(MACHFLAGS) $(INCLUDES)
  54. AFLAGS        = $(MACHFLAGS)
  55. LNFLAGS        = -bzh $(INCLUDES)
  56. COFLAGS     =
  57.  
  58. PRINT        = pr
  59. LINT        = lint
  60.  
  61. .DEFAULT    :
  62.     co $(COFLAGS) $<
  63.  
  64. all        : library lint 
  65.  
  66. $(LIBRARY)    : $(OBJS)
  67.     rm -f $@
  68.     ar crl $@ $(OBJS)
  69.     ranlib $@
  70.  
  71. $(PLIBRARY)    : $(POBJS)
  72.     rm -f $@
  73.     ar crl $@ $(POBJS)
  74.     ranlib $@
  75.  
  76.  
  77. $(LLIBRARY).ln    : $(SRCS) $(HDRS)
  78.     @echo "Creating $(LLIBRARY).ln..."
  79.     @$(LINT) -C$(LNAME) $(LNFLAGS) $(SRCS)
  80.  
  81. install        : all
  82.  
  83. library        : $(LIBRARY)
  84.  
  85. lint        : $(LLIBRARY).ln
  86.  
  87. tags        : $(HDRS) $(SRCS)
  88.     @ctags $(HDRS) $(SRCS)
  89.  
  90. clean        ::
  91.     rm -f *.o *.po liblst.a liblst_p.a
  92.  
  93. package        :
  94.     -mkdir $(PKGDIR)
  95.     cp $(SRCS) $(HDRS) Makefile makefile $(PKGDIR)
  96.  
  97. depend        : $(SRCS) 
  98.     makedepend -p -s"### DO NOT DELETE THIS LINE" $(INCLUDES) \
  99.         -f makefile $(SRCS)
  100.     
  101. ### DO NOT DELETE THIS LINE
  102.  
  103. lstAppend.o: lstInt.h lst.h ../include/sprite.h
  104. lstAtEnd.o: lstInt.h lst.h ../include/sprite.h
  105. lstAtFront.o: lstInt.h lst.h ../include/sprite.h
  106. lstConcat.o: lstInt.h lst.h ../include/sprite.h
  107. lstClose.o: lstInt.h lst.h ../include/sprite.h
  108. lstCur.o: lstInt.h lst.h ../include/sprite.h
  109. lstDatum.o: lstInt.h lst.h ../include/sprite.h
  110. lstDeQueue.o: lstInt.h lst.h ../include/sprite.h
  111. lstDestroy.o: lstInt.h lst.h ../include/sprite.h
  112. lstDupl.o: lstInt.h lst.h ../include/sprite.h
  113. lstEnQueue.o: lstInt.h lst.h ../include/sprite.h
  114. lstFind.o: lstInt.h lst.h ../include/sprite.h
  115. lstFindFrom.o: lstInt.h lst.h ../include/sprite.h
  116. lstFirst.o: lstInt.h lst.h ../include/sprite.h
  117. lstForEach.o: lstInt.h lst.h ../include/sprite.h
  118. lstForEachFrom.o: lstInt.h lst.h ../include/sprite.h
  119. lstIndex.o: lstInt.h lst.h ../include/sprite.h
  120. lstInit.o: lstInt.h lst.h ../include/sprite.h
  121. lstInsert.o: lstInt.h lst.h ../include/sprite.h
  122. lstIsAtEnd.o: lstInt.h lst.h ../include/sprite.h
  123. lstIsEmpty.o: lstInt.h lst.h ../include/sprite.h
  124. lstLast.o: lstInt.h lst.h ../include/sprite.h
  125. lstLength.o: lstInt.h lst.h ../include/sprite.h
  126. lstMember.o: lstInt.h lst.h ../include/sprite.h
  127. lstMove.o: lstInt.h lst.h ../include/sprite.h
  128. lstNext.o: lstInt.h lst.h ../include/sprite.h
  129. lstOpen.o: lstInt.h lst.h ../include/sprite.h
  130. lstPred.o: lstInt.h lst.h ../include/sprite.h
  131. lstPrev.o: lstInt.h lst.h ../include/sprite.h
  132. lstRemove.o: lstInt.h lst.h ../include/sprite.h
  133. lstReplace.o: lstInt.h lst.h ../include/sprite.h
  134. lstSetCirc.o: lstInt.h lst.h ../include/sprite.h
  135. lstSucc.o: lstInt.h lst.h ../include/sprite.h
  136.